package net.ulrice.mdls.richclient.monitor;

import javax.swing.BoxLayout;
import javax.swing.JComponent;
import javax.swing.JPanel;

public class ViewCallback {
	
	private JPanel mainPanel;

	public ViewCallback(JPanel mainPanel) {
		this.mainPanel = mainPanel;
		this.mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
	}

	public void addGraph(JComponent graph) {
		mainPanel.add(graph);
	}
}
